package edu.del.teamknowledgebase.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 点赞表：记录用户对文档的点赞
 * @TableName like
 */
@TableName(value ="like")
@Data
public class Like implements Serializable {

    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 被点赞的文档ID
     */
    private Long documentId;

    /**
     * 点赞的用户ID
     */
    private Long userId;

    /**
     * 
     */
    private Date createTime;

    /**
     * 是否删除：0-未删除，1-已删除
     */
    private Integer isDeleted;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = -7049276238890283922L;
}